require('page/common/header/index.js');
var _account_service = require('service/account-service');


var catalogMain = {
    init : function(){
        this.bindEvents();
        this.loadAccountInfo();
        return this;
    },
    bindEvents(){},
    loadAccountInfo : function(){
        _account_service.checkLogin(
            function(res){
                $('#WelcomeContent').text('欢迎您,'+res.username+'!');
            },
            function(errMsg){
                $('#WelcomeContent').text('');
            }
        )
    }
};

module.exports = catalogMain.init();